package com.chance.cc.crawler.prod.command.schedule.commerce.amazon;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.commerce.amazon.realtime.AmazonCommentCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.job.domain.commerce.amazon.realtime.AmazonCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;

/**
 * @ClassName dangdang
 * @Description TODO
 * @Author songding
 * @Date 2021/10/19 16:36
 * @Version 1.0
 **/
public class AmazonCommonCrawlerJobSchedule extends CommonCrawlerJobSchedule {
    public static void main(String[] args) {
        //每天采集最新评论
//        commonCrawlerScheduleJob(AmazonCommentCrawlerScheduleJob.amazonCommentCrawlerScheduler());
        //每天采集文章
        delCrawlerScheduleJob(AmazonCrawlerScheduleJob.amazonScheduler());
        //每月采集一次全品链接
//        keyCrawlerScheduleJob(AmazonKeyCrawlerScheduleJob.amazonScheduler());
    }

    public static void commonCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_2);
    }

    public static void delCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_2);
    }
    public static void keyCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_2);
    }
}
